package org.framework.utils;

import org.apache.commons.lang3.ArrayUtils;

/**
 * 数组工具类
 * @Author xuelongjiang
 */
public final class ArrayUtil {


    /**
     * 判断数组数否为空
     */
    public static  boolean isEmpty(Object [] array){
        return ArrayUtils.isEmpty(array);
        //return (array == null || array.length == 0)
    }


    /**
     * 判断数组是否不为空
     */
    public static boolean isNotEmpty(Object [] array){

        return  !ArrayUtils.isEmpty(array);
        //return !(array == null || array.length == 0)
    }


}
